 //http请求头
 var $headers_authorization = "YXV0aF9hcHBfd2VpeGluOjhjMmRjNDc1LWE1OTEtNDZhNC05YWI3LWI5YzdjZTQ2MTBiYg==";
 //http请求前缀
 var $http_prefix = "http://192.168.0.107:8080/pschool";
 
 //千聊直播地址   
 var $ql_hallUrl = "http://m.qlchat.com/live/280000178349270.htm";
 
 var $regRetUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx00c347511cb0d377&redirect_uri=http%3A%2F%2Fweixin.345pas.com.cn%2Fpschool%2Fweixin%2Foauth%2F0c4a77f0c181ea8567fb6f0c59691f6d&response_type=code&scope=snsapi_base&state=0c4a77f0c181ea8567fb6f0c59691f6d";
 
 var $pageChatSzie = 10;
 var $pageSize = 5;
 var $currPage = 0;
 
 //乐视对象
 var $obj_ls = {
 	lsuu : "ts1nlqzwrw",
 	auto_pay : 0,
 	gpcflag: 1,
	width: 340,
	height: 230,
	lang: "zh_CN"
 }
 
 var $lsvn;
 
 //根据url获取乐视地址中的vn
 function fun_getLsVn($lsUrl){
 	var $lsObjs = $lsUrl.split("?");
 	//获取参数
 	var $getParams = $lsObjs[1];
 	//参数
 	var $params = $getParams.split("&");
 	//获取vn
 	return $params[1].split("=")[1];
 }
 
 //获取url中的ID
 function fun_getUrlForParams($url, $segParams){
	var $spParams = $url.split("?"+ $segParams +"=");
	return $spParams[1];
 }
 
 //图片路径前缀
 var $img_prefix = "";
 //api接口对象
 var $request_url = {
 	regCcodes : $http_prefix + "/api/user/sendcheckcode", //注册验证码接口
    userLogin : $http_prefix + "/api/user/login", //用户登录接口
    userReg : $http_prefix + "/api/user/register", //用户注册接口
    getUserInfo : $http_prefix + "/api/user/getUserInfo", //获取用户信息接口
    updateUserInfo : $http_prefix + "/api/user/updateUserInfo", //更新用户信息接口
    
    getPostsRanking : $http_prefix + "/api/user/findCertificate", //获取上岗排位
    
    testPaper : $http_prefix + "/api/exam/getTestPaper", //评测试卷接口
    saveAnswer : $http_prefix + "/api/exam/postExamResult", //提交测试答案接口
    addChildInfo : $http_prefix + "/api/user/addChildInfo", //添加孩子信息接口
    updateChildInfo : $http_prefix + "/api/user/updateChildInfo", //更新孩子信息接口
    getArticleLst : $http_prefix + "/api/article/list", //文章列表接口
    getArticleByInfo : $http_prefix + "/api/article/detail", //文章信息接口
    
    getCommentLst : $http_prefix + "/api/comment/commentList",
	addArtComment : $http_prefix + "/api/comment/addComment",
    
    getVideoLst : $http_prefix + "/api/article/list", //获取视频列表接口
    getVideoInfo : $http_prefix + "/api/article/detail", //获取视频详细信息接口
    
   	getBigComProLst : $http_prefix + "/api/article/faqTypeList", //问题总类列表接口
    getComProLst : $http_prefix + "/api/article/faqList", //常见问题分类列表接口
    getComProInfo : $http_prefix + "/api/article/faqDetail", //常见问题详细接口
    getGoodTxtLst : $http_prefix + "/api/article/list", //好文列表接口
    getGoodTxtInfo : $http_prefix + "/api/article/detail", //好文详细接口
    getGoodBooksLst : $http_prefix + "/api/article/list", //好书列表接口
    getGoodBooksInfo : $http_prefix + "/api/article/detail", // 好书详细接口
    
    getExpLecturesLst : $http_prefix + "/api/article/list",
    
    getWonderfulVideoLst : $http_prefix + "/api/article/list", //精彩视频列表接口
    getWonderfulVideoInfo : $http_prefix + "/api/article/detail", //精彩视频详细接口
    
    getConsultantLst : $http_prefix + "/api/user/expertList", //咨询师列表接口
    getConsultantDetail : $http_prefix + "/api/user/getExpertInfo", //咨询师详细接口
    getChatList : $http_prefix + "/api/chat/list", //聊天列表
    addChatRec : $http_prefix + "/api/chat/add",//添加聊天记录
    getRecentContactsLst : $http_prefix + "/api/chat/lastChatList",//最近联系人信息
    
    getPostsVideosLst : $http_prefix + "/api/resource/typeList" , //上岗必修
    getPostsFeaVideoLst : $http_prefix + "/api/resource/typeList", //精选课程
    getCourseVideoInfo : $http_prefix + "/api/resource/list", //精选课程
    
    addComment : $http_prefix + "/api/comment/addComment", //文章添加评论接口
    getCommentLst : $http_prefix + "/api/comment/commentList", //文章评论列表
    addProblemComm : $http_prefix + "/api/comment/addComment", //问题评论添加
    getProblemList : $http_prefix + "/api/comment/commentList", //问题评论列表
    addGoodTxtComm : $http_prefix + "/api/comment/addComment", //好文评论添加
    getGoodTxtCommList : $http_prefix + "/api/comment/commentList", //好文评论列表
    addGoodBooksComm : $http_prefix + "/api/comment/addComment", //好书评论添加
    getGoodBooksCommList : $http_prefix + "/api/comment/commentList", //好书评论列表
    
    addScore : $http_prefix + "/api/exam/postSelfTest", //345评分
    addFeedback : $http_prefix + "/api/sys/postFeedback", //用户反馈
    
    getAttentionLstForAge : $http_prefix + "/api/article/hxghList",
 }
